package com.core.cloundbusinessapi.sheet.mayor.vo;

import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

/**
 * @author =====Lqj=====
 * @className CloudSheetQueryListVO
 * @description
 * @create 2024/12/4 12:35
 **/
@Getter
@Setter
public class CloudSheetQueryListVO {

    /**
     * 开始时间
     */
    private String startTime;

    /**
     * 结束时间
     */
    private String stopTime;


    public CloudSheetQueryListVO() {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        // 获取当前日期
        LocalDate today = LocalDate.now();
        // 获取当天的00:00:00
        LocalDateTime startOfDay = today.atStartOfDay();
        // 获取当天的23:59:59
        LocalDateTime endOfDay = today.atTime(LocalTime.MAX);
        this.startTime = startOfDay.format(formatter);
        this.stopTime = endOfDay.format(formatter);
    }
}
